E:/E+I/Informatik/Projekte/FH/n-Damen Problem/clrbox.c File Reference

#include "ndame.h"

Go to the source code of this file.

Functions

void clrbox (int ibox)
 clrbox


Detailed Description

PURPOSE: file deletes right or left field in box

Author:
Daniel Hasemann
Version:
1.0
Date:
December 16th, 2005

Definition in file clrbox.c.


Function Documentation

void clrbox int  ibox  ) 
 

clrbox

This function can delete the left or right part of the screen. The sub menu options() will appear on the left side and the chessboard will appear on the right side. After using clrbox will delete them from screen.

Parameters:
ibox is an integer
See also:
menu()

options()

filename()

Author:
Daniel Hasemann
Date:
December 16th, 2005

Definition at line 24 of file clrbox.c.

Referenced by options().

00025 {    
00026     int ii;
00027     int ij;
00028 
00029 
00030     if(!ibox)                                         //clear left box
00031     {
00032         for(ij=4;ij<=20;ij++)
00033         {
00034             for(ii=2;ii<=39;ii++)
00035             {
00036                 gotoxy(ii,ij);
00037                 printf(" ");
00038             }
00039         }
00040     }
00041     else                                              //clear right box
00042     {
00043         for(ij=4;ij<=20;ij++)
00044         {
00045             for(ii=41;ii<=79;ii++)
00046             {
00047                 gotoxy(ii,ij);
00048                 printf(" ");
00049             }
00050         }
00051     }
00052 }


Generated on Sun Dec 18 19:26:14 2005 for n-Queens Problem by  doxygen 1.4.5